package dancrawler.client.gamecmd;

import dancrawler.client.Client;
import dancrawler.common.Misc;
import dancrawler.proto.cmd.CmdHandler;
import dancrawler.server.netMsg;

/**
 *
 */
public class CmdChatRec extends CmdHandler {
    protected int[] args = {2,-1};
    private Client client;
    public CmdChatRec(Client client)
    {
        this.client = client;
    }
    @Override
    public void handleCmd(netMsg msg) {
        System.out.println("CHATREC");
        client.getRec().chatRec(Misc.bytesToShort(msg.getArgs()[0]), new String(msg.getArgs()[1]));
    }



    @Override
    public int getId() {
        return 17;
    }

 

    @Override
    public CmdHandler getHandler() {
        return this;
    }
}
